﻿<Window x:Class="TFS.Kanban.Desktop.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism" 
        xmlns:Constants="clr-namespace:TFS.Kanban.Constants;assembly=TFS.Kanban.Constants" 
        Title="MainWindow" Height="780" Width="1024">

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <Border Grid.Row="0"
                DockPanel.Dock="Top"
                HorizontalAlignment="Stretch" 
                VerticalAlignment="Stretch"
                BorderBrush="Black"
                BorderThickness="0,0,0,2">
            
            <ItemsControl ItemsSource="{Binding NavigationCommands}">

                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Margin="5" Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>

                <ItemsControl.ItemTemplate>
                    <DataTemplate>

                        <Button Height="60"
                                Width="120"
                                Content="{Binding Name}"
                                Command="{Binding .}" />

                    </DataTemplate>
                </ItemsControl.ItemTemplate>

            </ItemsControl>
            
        </Border>

        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <ContentControl Regions:RegionManager.RegionName="{x:Static Constants:RegionNames.Main}" />
        </ScrollViewer>
        
    </Grid>
    
</Window>
